package com.itheima.reggie.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

//菜品口味
@ApiModel("菜品口味")
@Data
public class DishFlavor implements Serializable {

    @ApiModelProperty("主键")
    private Long id;//主键

    @ApiModelProperty("所属菜品id")
    private Long dishId;//所属菜品id

    @ApiModelProperty("口味名称")
    private String name;//口味名称

    @ApiModelProperty("口味数据list")
    private String value;//口味数据list

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime; //创建时间

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime; //更新时间

    @ApiModelProperty("/创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser; //创建用户

    @ApiModelProperty("更新用户")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser; //更新用户

    //是否删除
    // @TableLogic(value = "0", delval = "1")
    @ApiModelProperty("是否删除")
    private Integer isDeleted;

}